﻿<%@ Page Title="" Language="C#" MasterPageFile="~/global.Master" AutoEventWireup="true" CodeBehind="StaffAllocation.aspx.cs" Inherits="Hospital.StaffAllocation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="center">
        <div id="title">Lịch làm việc</div>
        <div>
            <div>
                 <h3>Chọn thời gian:</h3><asp:TextBox ID="txtDate" runat="server" AutoPostBack="True" OnTextChanged="txtDate_TextChanged"></asp:TextBox>
                 <img src="images/cal.png"  alt="" onclick="displayCalendar()" /> 
            </div>
            <div id="datePicker" style="display:none" > 
                 <asp:Calendar id="calEventDate"  Runat="server" OnSelectionChanged="calEventDate_SelectionChanged" /> 
            </div> 
        </div>
           <script type="text/javascript">
               function displayCalendar() {
                   var date = document.getElementById('datePicker');
                   date.style.display = 'block';
               }
           </script>
        <div>
            <asp:GridView ID="grvDivision" runat="server" AutoGenerateSelectButton="True" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" OnSelectedIndexChanged="grvDivision_SelectedIndexChanged" Width="100%">
                <FooterStyle BackColor="White" ForeColor="#000066" />
                <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                <RowStyle ForeColor="#000066" />
                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#007DBB" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#00547E" />
            </asp:GridView>
        </div>
        <div id="title">Phân công</div>
        <table class="table">
            <tr>
                <td>Mã phân công:</td>
            <td><asp:TextBox ID="txtId" runat="server" Width="50px" Enabled="false"> </asp:TextBox></td>
            </tr>
            <tr>
                <td>Mã nhân viên:</td>
            <td><asp:DropDownList ID="listId" runat="server" Width="50px" AutoPostBack="True" OnTextChanged="listId_TextChanged"> </asp:DropDownList></td>
            </tr>
            <tr>
                <td>Tên nhân viên:</td>
            <td><asp:TextBox ID="txtName" runat="server" Width="100px" Enabled="False"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Chức vụ</td>
                 <td><asp:TextBox ID="txtPosition" runat="server" Width="138px" Enabled="false"> </asp:TextBox></td>
            </tr>
            <tr>
                <td>Chọn phòng:</td>
                <td>
                    <asp:RadioButton ID="rdClinic" runat="server" Text="Phòng khám" GroupName="phong" Enabled="false" AutoPostBack="True" OnCheckedChanged="rdClinic_CheckedChanged"/>
                    <asp:RadioButton ID="rdWard" runat="server" Text="Phòng bệnh" GroupName="phong" Enabled="false" AutoPostBack="True" OnCheckedChanged="rdWard_CheckedChanged"/>
                </td>
            </tr>
            <tr>
                <td>ddd</td>
                 <td><asp:DropDownList ID="list" runat="server" Width="138px" Enabled="false" AutoPostBack="True"> </asp:DropDownList></td>
            </tr>
        </table>
         <div id="function">
        <asp:Button ID="btnInsert" runat="server" Text="Thêm" OnClick="btnInsert_Click"></asp:Button>
        <asp:Button ID="btnDelete" runat="server" Text="Xóa" OnClick="btnDelete_Click"></asp:Button>
        <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" OnClick="btnUpdate_Click"></asp:Button>
        <asp:Button ID="txtReset" runat="server" Text="Làm mới" OnClick="txtReset_Click"></asp:Button>
    </div>
    </div>
</asp:Content>
